package ch5;

import java.util.Scanner;

public class Zxf11 {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        int i=1;
        int c=0;
        while (i<=10){
            int b=in.nextInt();
            c=b+c;
            System.out.println("总和："+c);
            i++;
        }
        System.out.println("总和："+c);

    }
}